"""
张量的reshape是在不改变数据的情况下改变张量的维度，重点：数据不发生变化
语法：
    data.reshape(行,列)   => 转换成 指定的行数和列数
"""
import torch as t

data = t.randint(1, 100, [4, 5, 6])
print("================= 原始数据 =================")
print(data)

print("================= data形状 =================")
print(data.shape)
print(data.size())

print("================= data 转成3行10列 =================")
print(data.reshape(4, 3, 10))

print("================= data 转成10行3列 =================")
print(data.reshape(4, 10, 3))
